package com.ruoyi.littleRedBook.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.littleRedBook.domain.pojo.User;

public interface UserService extends IService<User> {
    AjaxResult register(User user);

    AjaxResult login(String username, String password);

    AjaxResult getCurrentUserInfo();

    AjaxResult updateUserInfo(User user);

    AjaxResult updatePassword(String oldPassword, String newPassword);
}
